using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmSysCollateralType")]
    public class SysCollateralType
    {
        public SysCollateralType()
        {
            this.PurchaseOrderCollaterals = new HashSet<PurchaseOrderCollateral>();
        }
    

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ColTypeId", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public int ColTypeId { get; set; }

		[DataMember, Display(Name = "ColTypeName", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public string ColTypeName { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "IsFinance", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public string IsFinance { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


        [DataMember, Display(Name = "ICollection<PurchaseOrderCollateral>", ResourceType = typeof(Resources.SysCollateralTypeResource))]
        public virtual ICollection<PurchaseOrderCollateral> PurchaseOrderCollaterals { get; set; }

    }
}